﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KCMS.BusinessLogic.Models;

namespace KCMS.BusinessLogic.Interfaces
{
    public interface IProductService
    {
        Product getById(Guid id);
        Product getByCodeIndex(String code, int index);
        Product getByArticle(String article);
        IEnumerable<Product> searchByArticle(String article);
        IEnumerable<Product> getAll();
        IEnumerable<Product> getAllPublished();
        int getLastIndex();
        void update(Product product);
        void delete(Guid id);
        void save(Product product);

    }
}
